import http from '../utils/httpUtils'

export const getAddressByUserIdAPI = (id) => http.get(`/shipAddress/user/${id}`);

export const deleteAddressAPI = (id) => http.delete(`/shipAddress/${id}`);

export const getAddressByIdAPI = (id) => http.get(`/shipAddress/${id}`);

export const updateAddressAPI = (params) => http.put(`/shipAddress`, params);

export const setDefaultAddressAPI = (params) => http.put(`/shipAddress/def`, params);

export const addAddressAPI = (params) => http.post(`/shipAddress`, params);